import request from '../utils/request'

export const getIndexInfo = () => {
  return request({
    method: 'get',
    url: '/index-infos'
  })
}

export const getDetail = (id) => {
  return request({
    method: 'get',
    url: `/api/product/${id}`
  })
}